package com.boc.ewr.cornJob;

import com.boc.ewr.outsrc.service.IOutsrcNdrDtlService;
import com.boc.ewr.risk.service.ICacRiskService;
import lombok.extern.slf4j.Slf4j;
import org.jeecg.common.util.DateUtils;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @author : Wzz
 * @create : 2023-06- 18- 17:34
 * @desc : 外包管理-账单信息确认-数据生成&消息推送
 */
@Slf4j
public class OutsrcNdrDtlGenJob implements Job {

    @Autowired
    private IOutsrcNdrDtlService outsrcNdrDtlService;

    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        log.info(" Job Execution key：" + jobExecutionContext.getJobDetail().getKey());
        log.info(String.format(" 外包管理-账单信息确认-数据生成&消息推送 数据生成 OutsrcNdrDtlGenJob 时间:" + DateUtils.getTimestamp()));

        outsrcNdrDtlService.createInfo();
    }
}
